package com.css.zfzx.data.primary.fxEconomicLossEvaluationMapPG.repository.entity;

import javax.persistence.*;
import java.util.Date;
import java.util.Objects;

/**
 * @Description: data
 * @Author: lhl
 * @CreateDate: 2021/8/26 17:43
 */
@Entity
@Table(name = "fx_economic_loss_evaluation_map", schema = "base", catalog = "")
public class FxEconomicLossEvaluationMapPGEntity {
    private String uuid;
    private String province;
    private String city;
    private String area;
    private String affiliatedFileName;
    private String coordinate;
    private String gridData;
    private Integer level;
    private Double sum;
    private String earthquakeRisk;
    private String ratio;
    private String objectCode;
    private String isValid;
    private String partitionFlag;
    private String createUser;
    private Date createTime;
    private String updateUser;
    private Date updateTime;

    @Id
    @Column(name = "uuid")
    public String getUuid() {
        return uuid;
    }

    public void setUuid(String uuid) {
        this.uuid = uuid;
    }

    @Basic
    @Column(name = "province")
    public String getProvince() {
        return province;
    }

    public void setProvince(String province) {
        this.province = province;
    }

    @Basic
    @Column(name = "city")
    public String getCity() {
        return city;
    }

    public void setCity(String city) {
        this.city = city;
    }

    @Basic
    @Column(name = "area")
    public String getArea() {
        return area;
    }

    public void setArea(String area) {
        this.area = area;
    }

    @Basic
    @Column(name = "affiliated_file_name")
    public String getAffiliatedFileName() {
        return affiliatedFileName;
    }

    public void setAffiliatedFileName(String affiliatedFileName) {
        this.affiliatedFileName = affiliatedFileName;
    }

    @Basic
    @Column(name = "coordinate")
    public String getCoordinate() {
        return coordinate;
    }

    public void setCoordinate(String coordinate) {
        this.coordinate = coordinate;
    }

    @Basic
    @Column(name = "grid_data")
    public String getGridData() {
        return gridData;
    }

    public void setGridData(String gridData) {
        this.gridData = gridData;
    }

    @Basic
    @Column(name = "level")
    public Integer getLevel() {
        return level;
    }

    public void setLevel(Integer level) {
        this.level = level;
    }

    @Basic
    @Column(name = "sum")
    public Double getSum() {
        return sum;
    }

    public void setSum(Double sum) {
        this.sum = sum;
    }

    @Basic
    @Column(name = "earthquake_risk")
    public String getEarthquakeRisk() {
        return earthquakeRisk;
    }

    public void setEarthquakeRisk(String earthquakeRisk) {
        this.earthquakeRisk = earthquakeRisk;
    }

    @Basic
    @Column(name = "ratio")
    public String getRatio() {
        return ratio;
    }

    public void setRatio(String ratio) {
        this.ratio = ratio;
    }

    @Basic
    @Column(name = "object_code")
    public String getObjectCode() {
        return objectCode;
    }

    public void setObjectCode(String objectCode) {
        this.objectCode = objectCode;
    }

    @Basic
    @Column(name = "is_valid")
    public String getIsValid() {
        return isValid;
    }

    public void setIsValid(String isValid) {
        this.isValid = isValid;
    }

    @Basic
    @Column(name = "partition_flag")
    public String getPartitionFlag() {
        return partitionFlag;
    }

    public void setPartitionFlag(String partitionFlag) {
        this.partitionFlag = partitionFlag;
    }

    @Basic
    @Column(name = "create_user")
    public String getCreateUser() {
        return createUser;
    }

    public void setCreateUser(String createUser) {
        this.createUser = createUser;
    }

    @Basic
    @Column(name = "create_time")
    public Date getCreateTime() {
        return createTime;
    }

    public void setCreateTime(Date createTime) {
        this.createTime = createTime;
    }

    @Basic
    @Column(name = "update_user")
    public String getUpdateUser() {
        return updateUser;
    }

    public void setUpdateUser(String updateUser) {
        this.updateUser = updateUser;
    }

    @Basic
    @Column(name = "update_time")
    public Date getUpdateTime() {
        return updateTime;
    }

    public void setUpdateTime(Date updateTime) {
        this.updateTime = updateTime;
    }

    @Override
    public boolean equals(Object o) {
        if (this == o) return true;
        if (o == null || getClass() != o.getClass()) return false;
        FxEconomicLossEvaluationMapPGEntity that = (FxEconomicLossEvaluationMapPGEntity) o;
        return Objects.equals(uuid, that.uuid) &&
                Objects.equals(province, that.province) &&
                Objects.equals(city, that.city) &&
                Objects.equals(area, that.area) &&
                Objects.equals(affiliatedFileName, that.affiliatedFileName) &&
                Objects.equals(coordinate, that.coordinate) &&
                Objects.equals(gridData, that.gridData) &&
                Objects.equals(level, that.level) &&
                Objects.equals(sum, that.sum) &&
                Objects.equals(earthquakeRisk, that.earthquakeRisk) &&
                Objects.equals(ratio, that.ratio) &&
                Objects.equals(objectCode, that.objectCode) &&
                Objects.equals(isValid, that.isValid) &&
                Objects.equals(partitionFlag, that.partitionFlag) &&
                Objects.equals(createUser, that.createUser) &&
                Objects.equals(createTime, that.createTime) &&
                Objects.equals(updateUser, that.updateUser) &&
                Objects.equals(updateTime, that.updateTime);
    }

    @Override
    public int hashCode() {
        return Objects.hash(uuid, province, city, area, affiliatedFileName, coordinate, gridData, level, sum, earthquakeRisk, ratio, objectCode, isValid, partitionFlag, createUser, createTime, updateUser, updateTime);
    }
}
